package com.cskaoyan.shopping.service.remote;

import com.cskaoyan.mall.dto.ClearCartItemRequest;
import com.cskaoyan.mall.dto.ClearCartItemResponse;
import com.cskaoyan.shopping.service.ICartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther cskaoyan
 * @date 2022/7/28:17:17
 */
@RestController
public class OrderProductServiceImpl {

    @Autowired
    ICartService iCartService;

    @RequestMapping(value = "/rpc/items", method = RequestMethod.DELETE)
    ClearCartItemResponse clearCartItemByUserID(@RequestBody ClearCartItemRequest request) {
        return iCartService.clearCartItemByUserID(request);

    }
}
